<form name="frm" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="business" value="abc@def.coms">
<?php
/*include_once('ClsSebent/config.php');
$dt=date("m/d/Y");
  $q="Select * from cart_temp where site_id=".$_SESSION['SITE_ID']." and cur_dt='$dt'";
  //echo $q;
  $r=mysql_query($q);  
  $sum=0;
  $i=1;
  while($row=mysql_fetch_array($r)){*/
  $cart=$HTTP_COOKIE_VARS["Cart"];
  $cart_array=explode('##',$cart);
  $num=count($cart_array);
$i=1;
while($i<=$num-1){
$line_array=explode(',',substr($cart_array[$i],1,strlen($cart_array[$i])));
?>
<input type="hidden" name="item_name_<?php echo $i;?>" value="<?php echo $line_array[2];?>">
<input type="hidden" name="quantity_<?php echo $i;?>" value="<?php echo $line_array[3];?>">
<input type="hidden" name="amount_<?php echo $i;?>" value="<?php echo $line_array[9];?>">
<?php $i++;}?>
<!--<input type="submit" value="PayPal">-->
</form>
<script type="text/javascript">
document.frm.submit();
</script>